﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.redshift
{
	// Token: 0x02000102 RID: 258
	public class TRedshiftAlterUser : TCustomSqlStatement
	{
		// Token: 0x06000880 RID: 2176 RVA: 0x003021B4 File Offset: 0x003003B4
		public TRedshiftAlterUser(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstredshiftAlterUser;
		}

		// Token: 0x1700017A RID: 378
		// (get) Token: 0x06000881 RID: 2177 RVA: 0x003021C8 File Offset: 0x003003C8
		// (set) Token: 0x06000882 RID: 2178 RVA: 0x003021D0 File Offset: 0x003003D0
		public virtual TObjectName UserName
		{
			get
			{
				return this.userName;
			}
			set
			{
				this.userName = value;
			}
		}

		// Token: 0x06000883 RID: 2179 RVA: 0x003021DC File Offset: 0x003003DC
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.userName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x06000884 RID: 2180 RVA: 0x00302219 File Offset: 0x00300419
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000885 RID: 2181 RVA: 0x00302229 File Offset: 0x00300429
		public virtual void acceptSchema(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0400121A RID: 4634
		private TObjectName userName;
	}
}
